//import { NetWorkConfig } from './network.config';
const axios = require('axios');
const Time_URL = "http://47.97.65.11:3002/data-Warehouse/time-list"
const Temperature_URL="http://47.97.65.11:3002/data-Warehouse/temperature-data"


// 搜索参数
export class DianqiguiIDSearchArgs{
  constructor(){
    this.f011='';
  }
}
export class IDTemperatureSearchArgs{
  constructor(){
    this.f011='';
    this.time='';
  }
}

export async function searchTimeDataList(f011){
  try{
    const res=await axios({
      method:'get',
      url:Time_URL,
      params: {
        f011:f011
      },
      withCredentials:false
    })
    return res;
  }
  catch(error){
    console.error(error)
  }
}
export async function searchTemperatureDataList(f011,time)
{
  try{
    const res=await axios({
      method:'get',
      url:Temperature_URL,
      params:{
        f011:f011,
        time:time
      },
      withCredentials:false
    })
    return res;
  }
  catch(error){
    console.error(error)
  }
}
